<template>
  <div class='header'>
    <slot name="title">
      <h1>{{title}}</h1>
    </slot>
    <slot name="subtitle">
      <h2>副标题</h2>
    </slot>
  </div>
</template>

<script>
export default {
  name: 'TodoHeader',
  data () {
    return {}
  },
  props: {
    title: {
      type: String,
      default: () => '默认的主标题'
    }
  }
}
</script>

<style lang='scss' scoped>

</style>
